<?php
declare (strict_types = 1);

namespace app\api\model\v1;

use think\Model;

/**
 * @mixin \think\Model
 */
class CollectionTopic extends AppModel
{
    //
    public function topic(){
        return $this->belongsTo(LearnTopic::class,'learn_topic_id')->field('id,topic_title as title,learn_answer,answer_explain,question_type');
    }
}
